/**
* +----------------------------------------------------------------------
* | 友得云客  - 开启房产营销新纪元
* +----------------------------------------------------------------------
* | Copyright (c) 2019~2023 优得（西安）信息科技有限公司版权所有
* +----------------------------------------------------------------------
* | Licensed 友得云客不是自由软件 未经允许不可移除相关版权
* +----------------------------------------------------------------------
* | Author: www.youdeyunke.com
* +----------------------------------------------------------------------
*/
import request from '@/utils/request'
import { method } from 'lodash'

export function getExtApiList (params) {
    return request({
        url: '/admin6/ext_api',
        method: 'GET',
        params
    })
}


export function createExtApi (data) {
    return request({
        url: '/admin6/ext_api',
        method: 'POST',
        data: data
    })
}

export function updateExtApi (data) {
    return request({
        url: '/admin6/ext_api/' + data.id,
        method: 'PATCH',
        data: data
    })
}

export function deleteExtApi (eid) {
    return request({
        url: '/admin6/ext_api/' + eid,
        method: 'DELETE',
    })
}

export function callExtapi (data) {
	return request({
        url: '/v6/extapi',
        method: 'POST',
        data: data,
        /**
         * {
         *   method_name: '',  扩展接口名称
         *   data: data        扩展接口参数
         * }
         */
	});
}